import org.apache.hadoop.io.IntWritable;

// 自定义IntWritable比较器，实现降序排序
public class DescendingIntWritable extends IntWritable {

    @Override
    public int compareTo(IntWritable o) {
        // 反转比较结果，实现降序
        return -super.compareTo(o);
    }
}
